package com.docker.chy.service.impl;

import java.util.List;
import com.docker.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.chy.mapper.guahaoMapper;
import com.docker.chy.domain.guahao;
import com.docker.chy.service.IguahaoService;

/**
 * 挂号记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
@Service
public class guahaoServiceImpl implements IguahaoService 
{
    @Autowired
    private guahaoMapper guahaoMapper;

    /**
     * 查询挂号记录
     * 
     * @param id 挂号记录主键
     * @return 挂号记录
     */
    @Override
    public guahao selectguahaoById(Long id)
    {
        return guahaoMapper.selectguahaoById(id);
    }

    /**
     * 查询挂号记录列表
     * 
     * @param guahao 挂号记录
     * @return 挂号记录
     */
    @Override
    public List<guahao> selectguahaoList(guahao guahao)
    {
        return guahaoMapper.selectguahaoList(guahao);
    }

    /**
     * 新增挂号记录
     * 
     * @param guahao 挂号记录
     * @return 结果
     */
    @Override
    public int insertguahao(guahao guahao)
    {
        guahao.setCreateTime(DateUtils.getNowDate());
        return guahaoMapper.insertguahao(guahao);
    }

    /**
     * 修改挂号记录
     * 
     * @param guahao 挂号记录
     * @return 结果
     */
    @Override
    public int updateguahao(guahao guahao)
    {
        return guahaoMapper.updateguahao(guahao);
    }

    /**
     * 批量删除挂号记录
     * 
     * @param ids 需要删除的挂号记录主键
     * @return 结果
     */
    @Override
    public int deleteguahaoByIds(Long[] ids)
    {
        return guahaoMapper.deleteguahaoByIds(ids);
    }

    /**
     * 删除挂号记录信息
     * 
     * @param id 挂号记录主键
     * @return 结果
     */
    @Override
    public int deleteguahaoById(Long id)
    {
        return guahaoMapper.deleteguahaoById(id);
    }
}
